import java.util.concurrent.ConcurrentHashMap;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Ap0stoL2
 * Date: 2023-08-01
 * Time: 11:42
 */
class A{

    public synchronized  void func(){
        synchronized(this){
            System.out.println("hehe");
        }
    }
}
public class test1 {

    public static void main(String[] args) {
        ConcurrentHashMap<Integer,Integer> mp = new ConcurrentHashMap<Integer,Integer>();
        mp.put(1,3);
        
    }
    public static void main1(String[] args) {
        Thread t1 = new Thread(()->{
            A a = new A();
            a.func();
        },"sb");
    }
}
